package com.sucsoft.pdf.bean.mongodb;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.ArrayList;
import java.util.List;


/**
 * @Author zhaowh
 * @Date 2020/10/19
 * Description
 */
@ApiModel("书籍的pdf和img信息")
@Document(collection = "book_info")
public class AllPageInfo {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("书籍Id")
    @Field("book_id")
    private String bookId;

    @ApiModelProperty("每一页的pdf和img信息")
    @Field("page_info")
    private List<PageInfo> pageInfoList = new ArrayList<>();

    public String getId() {
        return id;
    }

    public AllPageInfo setId(String id) {
        this.id = id;
        return this;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public List<PageInfo> getPageInfoList() {
        return pageInfoList;
    }

    public void setPageInfoList(List<PageInfo> pageInfoList) {
        this.pageInfoList = pageInfoList;
    }
}
